
<!-- 列表界面 -->
<div id="data-list">
	<div class="banner">
		<span class="base-blue-01 base-search iconfont icon-chazhaobiaodanliebiao" data-title='日志列表'>日志列表查询</span>
	</div>
	<div class="base-form"> 
		<form id="fa-search">
			<table class="base-table form search">
				<tr>
					<td class="td-bg" width="150">日志类型</td>
					<td class="left padding-l">
						<select class="base-select"  name="type" id="type">
						<option value="">请选择</option>
						<option value="0">正常</option>
						<option value="1">异常</option>
					</select>
					</td>
					<td class="td-bg" width="150">创建时间</td>
					<td class="left padding-l">
						<input	class="base-input base-date" name="createDate" id="createDate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})">
					</td>
					<td class="center" rowspan="1" width="150">
						<button id="btn_search" type="button" class="base-btn base-bg-green" data-toggle="modal">查询</button>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div class="banner">
		<span class="base-blue-01 base-search iconfont icon-chazhaobiaodanliebiao">日志管理</span>
	</div>
	<div id="list">
	<table class="list-table base-table">
		<thead>
			<tr>
				<th width="60">序号</th>
				<th width="80">用户名</th>
				<th width="140">创建时间</th>
				<th width="100">ip地址</th>
				<th width="150">异常信息</th>
				<th width="150">异常代码</th>
				<th width="120">描述</th>
				<th width="80">操作</th>
			</tr>
		</thead>
		<tbody id="datalist">
			
		</tbody>
		<script id="tradecent-template" type="text/x-handlebars-template">
	{{#each this}}
	<tr data-id="{{LogId}}">
		<td><div class='base-wrap'>{{addOne @index}}</div></td>
		<td><div class='base-wrap left' title='{{userName}}'>{{userName}}</div></td>
		<td><div class='base-wrap'>{{createDate}}</div></td>
		<td><div class='base-wrap'>{{requestIp}}</div></td>
		<td><div class='base-wrap' title='{{exceptionDetail}}'>{{exceptionDetail}}</div></td>
		<td><div class='base-wrap'>{{exceptionCode}}</div></td>
		<td><div class='base-wrap' title='{{description}}'>{{description}}</div></td>
		<td>
		<shiro:hasPermission name="sysLog:deleteLog"><span class="oper-handle iconfont icon-shanchu base-red delete" title='删除日志' data-pkid={{logId}}></span></shiro:hasPermission>
		<shiro:hasPermission name="sysLog:detailLog"><span class="oper-handle iconfont icon-xiangqing base-blue detail" title='详情' data-pkid={{logId}}></span></shiro:hasPermission>
		</td>
	</tr>
	{{/each}}		
	</script>
	</table>
	</div>
</div>
<!-- end列表界面 -->

<!-- 详情页面 -->
<div id="data-form" class="data-form"  data-title='日志详情'>
	<form id="form">
		<table class="base-table form">
			<input type='hidden' name='LogId'>
			<tr>
				<td class="td-bg" width="150">用户名</td>
				<td class="left"><input  name="userName" class="base-input"></td>
				<td width="150">创建时间</td>
				<td><input type="text" name="createDate" class="base-input"></td>
			</tr>
			<tr>
				<td width="150">IP地址</td>
				<td><input name="requestIp" class="base-input"></td>
				<td width="150">类型</td>
				<td class="padding-l"><input name="type" class="base-input"></td>
			</tr>
			<tr>
				<td width="150">操作结果</td>
				<td class="padding-l" colspan="3"><input name="description" class="base-input"></td>
			</tr>
			<tr>
				<td width="150">请个方法</td>
				<td colspan="3">
					<textarea rows="" cols="" name="method" class="base-input"></textarea>
				</td>
			</tr>
			<tr>
				<td width="150">异常代码</td>
				<td colspan="3">
					<textarea rows="" cols="" class="base-textarea" name="exceptionCode"></textarea>
				</td>
			</tr>
			<tr>
				<td width="150">请求参数</td>
				<td colspan="3">
					<textarea rows="" cols="" class="base-textarea" name="params"></textarea>
				</td>
			</tr>
			<tr>
				<td width="150">异常信息</td>
				<td colspan="3">
					<textarea rows="" cols="" class="base-textarea" name="exceptionDetail"></textarea>
				</td>
			</tr>

		</table>
	</form>
	<div class="toolbar buttom-btn fixed_pos">
			<button id="btn_back" type="button" class="base-btn base-bg-yellow">
				返回</button>
			<button id="btn_save" type="button" class="base-btn base-bg-blue">
				保存</button>
	</div>
</div>
<!--end新增与详情页面-->
<script type="text/javascript">
	$(function() {
		$.baseEvent({
			ctx:'',
			param:['type','createDate'],
			isPage:true,
			pageList_url:"/sysLog/pageList",
			data_list:'/route/sys/sys_logList',
			del_url:'/sysLog/delLog',
			findBy_url:'/sysLog/findLog',
			add_is_dialog:false
		});
	});
	
</script>
